import request from "@/utils/request";

//新增提现
export function addWithdraw(data) {
    return request({
        url: "/cashOut/save",
        method: "post",
        data: data
    });
}
//提现记录列表
export function getWithdrawRecordList(data) {
    return request({
        url: "/cashOut/list?current=" + data.current + "&size=" + data.size + "&userId=" + data.userId,
        method: "get",
    });
}
//收益记录列表
export function getIncomeRecordList(data) {
    return request({
        url: "/earningRecord/info?current=" + data.current + "&size=" + data.size + "&userId=" + data.userId,
        method: "get",
    });
}
//收益记录详情
export function getIncomeRecordDetail(data) {
    return request({
        url: "/earningRecord/detail?id=" + data,
        method: "get",
    });
}